package com.example.easytrain;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.Button;
import android.widget.EditText;
import android.view.View;
import android.view.View.OnClickListener;
import java.lang.String;

public class MainActivity extends Activity {

	private Button bt;
	private EditText et;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        bt = (Button) findViewById(R.id.button1);
        et = (EditText) findViewById(R.id.editText3);
        bt.setOnClickListener(new OnClickListener() {
        	public void onClick(View v)
        	{
        		EditText et1 = (EditText) findViewById(R.id.editText1);
        		String a = et1.getText().toString();
        		et.setText(a);
        	}
        });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
    
    
}
